<?php header("Content-type:text/html;charset=utf-8"); ?>
<html>
<head>
<?php $this->import('title');?>
</head>
<body>

<form action="admin.php?m=goods&a=modifySave" method="post">
<table>
<tr><th>商品名称</th><td><input type="text" name="goodsName" value="<?php echo $this->goodsInfo['goodsName']?>" /></td></tr>
<tr><th>售价</th><td><input type="text" name="price" value="<?php echo $this->goodsInfo['price']?>" /></td></tr>
<tr><th>单位</th><td><input type="text" name="unit" value="<?php echo $this->goodsInfo['unit']?>" /></td></tr>
<tr><th>重量</th><td><input type="text" name="weight" value="<?php echo $this->goodsInfo['weight']?>" /></td></tr>
<tr><th>运费</th><td><input type="text" name="freight" value="<?php echo $this->goodsInfo['freight']?>" /></td></tr>

<tr><th>所属分类</th><td>
<select name="cateID">
<?php foreach($this->cates as $k=>$v):?>
<option value="<?php echo $v['id']?>"<?php if($this->goodsInfo['cateID'] == $v['id']) echo 'selected="selected"';?>><?php echo $v['cateName']?></option>
<?php endforeach;?>
</select>
</td></tr>

<tr><td>SEO优化设置</td><td>&nbsp;</td></tr>
<tr><th>URL名称</th><td><input type="text" name="urlName" value="<?php echo $this->goodsInfo['urlName']?>" /></td></tr>
<tr><th>关键字</th><td><input type="text" name="keyWords" value="<?php echo $this->goodsInfo['keyWords']?>" /></td></tr>
<tr><th>页面描述</th><td><input type="text" name="desc" value="<?php echo $this->goodsInfo['desc']?>" /></td></tr>


<tr><td>&nbsp;</td><td><input type="submit" value="保存" /></td></tr>
</table>
</form>

</body>
</html>